package com.hsy.managemoney.modules.view.viewpager.com.stevenhu.android.phone.utils;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;

import com.hsy.managemoney.R;
import com.nostra13.universalimageloader.core.ImageLoader;


/**
 */
public class ViewFactory {

	/**
	 *
	 * @param text
	 * @return
	 */
	public static ImageView getImageView(Context context, String url) {
		ImageView imageView = (ImageView)LayoutInflater.from(context).inflate(
				R.layout.view_banner, null);
		ImageLoader.getInstance().displayImage(url, imageView);
		return imageView;
	}
}
